Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 7 - Finder Interface Reference / Finder Interface Types and Constants


Folder Type Constants

CHANGED WITH MAC OS 8

You can pass these constants in the folderType parameter of the function FindFolder to specify a folder on a particular volume.

enum {   
   kSystemFolderType                  = 'macs',  
   kDesktopFolderType                 = 'desk',  
   kTrashFolderType                   = 'trsh',  
   kWhereToEmptyTrashFolderType       = 'empt',  
   kPrintMonitorDocsFolderType        = 'prnt',  
   kStartupFolderType                 = 'strt',  
   kShutdownFolderType                = 'shdf',  
   kFontsFolderType                   = 'font',  
   kAppleMenuFolderType               = 'amnu',  
   kControlPanelFolderType            = 'ctrl',  
   kExtensionFolderType               = 'extn',  
   kPreferencesFolderType             = 'pref',  
   kTemporaryFolderType               = 'temp'   
   kExtensionDisabledFolderType       = 'extD',
   kControlPanelDisabledFolderType    = 'ctrD',
   kSystemExtensionDisabledFolderType = 'macD', 
   kStartupItemsDisabledFolderType    = 'strD',
   kShutdownItemsDisabledFolderType   = 'shdD',
   kApplicationsFolderType            = 'apps',
   kDocumentsFolderType               = 'docs'         
   kVolumeRootFolderType              = 'root',
   kChewableItemsFolderType           = 'flnt',
   kApplicationSupportFolderType      = 'asup', 
   kTextEncodingsFolderType           = 'florintex',  
   kStationeryFolderType              = 'odst',
   kOpenDocFolderType                 = 'odod',  
   kOpenDocShellPlugInsFolderType     = 'odsp',
   kEditorsFolderType                 = 'oded',  
   kOpenDocEditorsFolderType          = 'florinodf',     
   kOpenDocLibrariesFolderType        = 'odlb',     
   kGenEditorsFolderType              = 'florinedi',     
   kHelpFolderType                    = 'florinhlp',     
   kInternetPlugInFolderType          = 'florinnet',     
   kModemScriptsFolderType            = 'florinmod',  
   kPrinterDescriptionFolderType      = 'ppdf', 
   kPrinterDriverFolderType           = 'florinprd',  
   kScriptingAdditionsFolderType      = 'florinscr',    
   kSharedLibrariesFolderType         = 'florinlib',     
   kVoicesFolderType                  = 'fvoc',     
   kControlStripModulesFolderType     = 'sdev',
   kAssistantsFolderType              = 'astflorin',     
   kUtilitiesFolderType               = 'utiflorin',     
   kAppleExtrasFolderType             = 'aexflorin',     
   kContextualMenuItemsFolderType     = 'cmnu',
   kMacOSReadMesFolderType            = 'morflorin'      
};
typedef OSType FolderType;

Constant descriptions

kSystemFolderType
Specifies a System Folder on a particular volume.
kDesktopFolderType
Specifies a Desktop Folder on a particular volume.
kTrashFolderType
Specifies a single-user Trash folder on a particular volume.
kWhereToEmptyTrashFolderType
Specifies a shared Trash folder on a particular volume.
kPrintMonitorDocsFolderType
Specifies a Print Monitor Documents folder on a particular volume.
kStartupFolderType
Specifies a Startup Items folder on a particular volume.
kShutdownFolderType
Specifies a Shutdown Items folder on a particular volume.
kFontsFolderType
Specifies a Fonts folder on a particular volume.
kAppleMenuFolderType
Specifies an Apple Menu Items folder on a particular volume.
kControlPanelFolderType
Specifies a Control Panels folder on a particular volume.
kExtensionFolderType
Specifies an Extensions folder on a particular volume.
kPreferencesFolderType
Specifies a Preferences folder on a particular volume.
kTemporaryFolderType
Specifies a Temporary folder on a particular volume.
kExtensionDisabledFolderType
Specifies a Disabled Extensions folder on a particular volume.
kControlPanelDisabledFolderType
Specifies a Disabled Control Panels folder on a particular volume.
kSystemExtensionDisabledFolderType
Specifies a Disabled System Extension folder on a particular volume.
kStartupItemsDisabledFolderType
Specifies a Disabled Startup Items folder on a particular volume.
kShutdownItemsDisabledFolderType
Specifies a Disabled Shutdown Items folder on a particular volume.
kApplicationsFolderType
Specifies an application folder on a particular volume.
kDocumentsFolderType
Specifies a document folder on a particular volume.
kVolumeRootFolderType
Specifies a root folder on a particular volume.
kChewableItemsFolderType
Specifies an invisible folder on the system disk called "Cleanup at Startup" whose contents are deleted when the system is restarted, instead of merely being moved to the Trash. When the FindFolder function indicates this folder is available (by returning noErr), developers should usually use this folder for their temporary items, in preference to the Temporary Items folder.
kApplicationSupportFolderType
This folder contains code and data files needed by third-party applications. Do not place in this folder items for which appropriate folders already exist; for example, a preference file belongs in the Preferences folder, not in the Application Support folder. In general, files deleted from this folder remove functionality from an application, unlike files in the Preferences folder, which should be non-essential. One type of file that could be placed here would be plug-ins that the user might want to maintain separately from any application, such as for an image-processing application that has many "fourth-party" plug-ins that the user might want to upgrade separately from the host application. Another type of file that might belong in this folder would be application-specific data files that are not preferences, such as for a scanner application that needs to read description files for specific scanner models according to which are currently available on the SCSI bus or network.
kTextEncodingsFolderType
Specifies the text encoding tables folder on a particular volume.
kStationeryFolderType
Specifies OpenDoc stationery folder on a particular volume.
kOpenDocFolderType
Specifies an OpenDoc root folder on a particular volume.
kOpenDocShellPlugInsFolderType
Specifies OpenDoc shell plug-ins in an OpenDoc folder on a particular volume.
kEditorsFolderType
Specifies an OpenDoc editors subfolder in a Mac OS folder on a particular volume.
kOpenDocEditorsFolderType
Specifies an OpenDoc subfolder in an editors folder on a particular volume.
kOpenDocLibrariesFolderType
Specifies an OpenDoc libraries folder on a particular volume.
kGenEditorsFolderType
Specifies a general editors folder on a particular volume.
kHelpFolderType
Specifies a help folder on a particular volume.
kInternetPlugInFolderType
Specifies a folder of internet browser plug-ins on a particular volume.
kModemScriptsFolderType
Specifies a modem scripts folder (moved from the extensions folder) on a particular volume.
kPrinterDescriptionFolderType
Specifies a printer descriptions folder on a particular volume.
kPrinterDriverFolderType
Specifies a printer drivers folder on a particular volume.
kScriptingAdditionsFolderType
Specifies a text scripting additions folder on a particular volume.
kSharedLibrariesFolderType
Specifies a general shared libraries folder on a particular volume.
kVoicesFolderType
Specifies a MacinTalk folder on a particular volume.
kControlStripModulesFolderType
Specifies a Control Strip Modules folder on a particular volume.
kAssistantsFolderType
Specifies an Assistants folder (e.g., Mac OS Setup Assistant) on a particular volume.
kUtilitiesFolderType
Specifies a Utilities folder on a particular volume.
kAppleExtrasFolderType
Specifies an Apple Extras folder on a particular volume.
kContextualMenuItemsFolderType
Specifies a Contextual Menu Items folder on a particular volume.
kMacOSReadMesFolderType
Specifies a Mac OS Read Me's folder on a particular volume.
WHEN MAC OS 8 IS NOT AVAILABLE
Only the following folder types are available on a particular volume:


   kSystemFolderType            = 'macs',  
   kDesktopFolderType           = 'desk',  
   kTrashFolderType             =  trsh',  
   kWhereToEmptyTrashFolderType = 'empt',  
   kPrintMonitorDocsFolderType  = 'prnt',  
   kStartupFolderType           = 'strt',  
   kShutdownFolderType          = 'shdf',  
   kFontsFolderType             = 'font',  
   kAppleMenuFolderType         = 'amnu',  
   kControlPanelFolderType      = 'ctrl',  
   kExtensionFolderType         = 'extn',  
   kPreferencesFolderType       = 'pref',  
   kTemporaryFolderType         = 'temp'   

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998